package com.wy.dao;

import com.wy.pojo.Danyuan;
import com.wy.pojo.Room;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface RoomDao extends JpaRepository<Room,Integer> {

    @Query(value = "SELECT * FROM room WHERE danyuanId=?1",nativeQuery = true)
    List<Room> searchidAll(Integer danyuanId);
}
